import type { RolePermission } from '@/types/permission'

export declare interface RoleDTO {
  id: number
  name: string
  description: string
  status: number
  createdAt: string
  updatedAt: string
  permissionList: RolePermission[]
}

export declare interface QueryRoleDTO {
  name?: string
  description?: string
  status?: number
  permissionList?: number[]
}

export declare interface AddRoleDTO {
  name: string
  description: string
  status: number
}

export declare interface UpdateRoleDTO {
  id: number
  name: string
  description: string
  status: number
  permissionList: number[]
}

export declare interface UserRole {
  roleName: string
  roleId: number
}
